const express = require('express');
//  创建页面路由对象
const home = express.Router();

//  用户主页
home.get('/', (req, res) => {
    res.render('home/index');
});

//  人脸注册
home.post('/faceRegister', require('./home/faceRegister'));

//  人脸识别考勤
home.post('/login', require('./home/recognize'));

//  人脸识别
home.post('/faceCompare', require('./home/faceCompare'));

//  作业提交
home.post('/homework', require('./home/homework'))

//  将路由对象作为模块成员导出
module.exports = home;
